/**
 * 默认路由配置，所有用户可以访问的路由，不需要通过后端接口返回，
 * 都需要将下面的路由添加到路由中
 */
import type { RouteRecordRaw } from 'vue-router'

export const errorRoutes: RouteRecordRaw[] = [
  {
    path: "/401",
    name: 'NoPermission',
    component: () => import("@/views/error/401.vue"),
    meta: {
      title: '401页面',
      icon: 'ele-Undefine',
      cache: true,
      hidden: true,
      isBreadcrumd: true,
    },
    "children": []
  },
  {
    path: "/home",
    name: 'Home',
    component: () => import("@/views/home/index.vue"),
    meta: {
      title: '首页',
      icon: 'ele-Undefine',
      cache: true,
      hidden: true,
      isBreadcrumd: true,
    }
  },
  {
    path: "/:path(.*)", // 404匹配上面未找到的路由
    name: 'NoFound',
    component: () => import("@/views/error/404.vue"),
    meta: {
      title: '未找到该页面',
      cache: true,
      hidden: true,
    }
  },
]